﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace UmlControlLibrary
{
    public class UmlElementList:UmlElement
    {
       // public static UmlElementList Instance = new UmlElementList();

//        private ObservableCollection<UmlElement> _childs = new ObservableCollection<UmlElement>();

/*        public override void AddElement(UmlElement c)
        {
            if (!Childs.Contains(c))
                Childs.Add(c);
            foreach (UmlElement element in Childs)
            {
                if (element != c)
                    // Notify other elements that there is a new element
                    element.OnElementAdded(c);
            }

            base.AddElement(c);
        }*/



        public static List<string> GetTypesList()
        {
            List<string> result = new List<string>();
            result.Add("String");
            result.Add("Int");

            foreach (UmlElement c in Instance.Elements)
                result.Add((c as UmlElement).Name);

            return result;
        }
    }
}
